package com.hmdp.learn;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.Map;

@Configuration
@ConfigurationProperties(prefix = "login.types")
public class LoginTypeConfig {
    //# 定义前端请求type参数和策略类bean名称的对应关系
    //login:
    //  types:
    //    account:accountGranter
    //    sms:smsGranter
    private Map<String, String> configMap;

    public Map<String, String> getConfigMap() {
        return configMap;
    }

    public void setConfigMap(Map<String, String> configMap) {
        this.configMap = configMap;
    }
}
